<template>
	<view class="content">
		<view class="type">
			<view class="type1">
				<text>统计类型</text>
			</view>
			<view class="type2">
				<picker @change="bindPickerChange" :value="index" :range="array">
					<view class="uni-input">{{array[index]||'请选择'}}</view>
				</picker>
				<text>></text>
			</view>
		</view>
		<view class="type">
			<view class="type1">
				<text>统计类型</text>
			</view>
			<view class="type3" v-for="(item,index) in list" :key="index" @click="change(item.id)">
				<view class="type2_1" :style="{background:a==item.id?'#146DF4':''}">
					<image src="../../../static/school/xz.png" mode=""></image>
				</view>
				<view class="type2_2">
					<text>{{item.title}}</text>
				</view>
			</view>
		</view>
		
		<view class="type">
			<view class="type1">
				<text>任务名称</text>
			</view>
			<view class="type2">
				<input type="text" value="" placeholder="请为本次统计任务起一个名称" />
			</view>
		</view>
		<view class="type">
			<view class="type1">
				<text>订单关键字</text>
			</view>
			<view class="type2">
				<input type="text" value="" placeholder="收货人姓名/手机/校园名称(选填)" />
			</view>
		</view>
		<view class="type">
			<view class="type1">
				<text>订单日期(起)</text>
			</view>
			<view class="type2">
				<input type="text" value="" placeholder="请选择订单起始日期(选填)" />
			</view>
		</view>
		<view class="type">
			<view class="type1">
				<text>订单日期(终)</text>
			</view>
			<view class="type2">
				<input type="text" value="" placeholder="请选择订单结束日期(选填)" />
			</view>
		</view>
		
		<view class="title">
			<text>订单日期（起）：若选择，统计选择日期之后订单 订单日期（终）：若选择，统计选择日期之前订单 两者都填：统计起始日期至终止日期之间订单</text>
		</view>
		<view class="bt1">
			<button type="default" @click="to()">提交本次统计任务</button>
		</view>
		<view class="bt2">
			<button type="default" @click="tt()">查看统计任务记录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['', '中国', '美国', '巴西', '日本'],
				index: 0,
				a: 0,
				list: [{
						id: 0,
						title: '全部订单'
					},
					{
						id: 1,
						title: '有效订单'
					}
				]
			}
		},
		mounted() {
			console.log(1)	
		},
		onLoad() {
		console.log(1)	
		},
		methods: {
			change(id) {
				this.a = id
			},
			to(){
				uni.navigateTo({
					url:'/pages/shop/mushop/download1'
				})
			},
			tt(){
				uni.navigateTo({
					url:'/pages/shop/mushop/download2'
				})
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1720rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		
	}

	.type {
		display: flex;
		margin-left: 32rpx;
		margin-right: 32rpx;
		border-bottom: 2rpx solid #EEEEEE;
		padding-bottom: 24rpx;
		padding-top: 40rpx;
	}

	.type1 {
		width: 30%;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
	}

	.type2 {
		width: 65%;
		display: flex;
		justify-content: space-between;
	}
	.type2 input{
		width: 100%;
	}
	.type2 input::placeholder{
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #999999;
	}

	.type2_1 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		border: 2rpx solid #333333;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.type2_1 image {
		width: 36rpx;
		height: 36rpx;
	}
	.type3{
		
		display: flex;
		align-items: center;
		
	}
	.type2_1{
		
	}
	.type2_2{
		margin-left: 16rpx;
	}
	.title{
		width: 616rpx;
		height: 120rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #666666;
		margin-left: 32rpx;
		margin-top: 32rpx;
	}
	.bt1{
		margin: 300rpx auto 0;
	}
	.bt1 button{
		width: 690rpx;
		height: 96rpx;
		background: #409CFD;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.bt2{
		margin: 40rpx auto 0;
	}
	.bt2 button{
		
		width: 690rpx;
		height: 96rpx;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		border: 4rpx solid #409CFD;
		font-family: PingFang SC, PingFang SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #409CFD;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>